﻿/// <reference path="/Scripts/jquery-1.5.1-vsdoc.js" />
/// <reference path="/Scripts/jquery.validate-vsdoc.js" />
$(document).ready(function () {
    $('form').validate({
        rules: {
            InspectDepartment: 'required',
            InspectTime: 'required',
            InspectResult: 'required'
        },
        messages: {
            InspectDepartment: '检测机构不能为空',
            InspectTime: '检测时间不能为空',
            InspectResult: '检测结果不能为空'
        }
    });

    $('#InspectTime').datepicker();
});